home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / prolog / sbprolog / amiga / toplevel.zoo / notes_on_amiga_port < prev    next >
Text File  |  1989-12-07  |  3KB  |  63 lines

  1. A few notes on the amiga port of SB Prolog 2.5:
  2.  
  3. The port was done using version 1.3 of AmigaDOS, and has not been
  4. tested at all under version 1.2.  You should not expect it to run
  5. on older versions of AmigaDOS.
  6.  
  7. The port was done using Aztec C 3.6a, and uses that compiler's style of
  8. environment variables.  The enclosed program "setenv" should allow simple
  9. access to Aztec C environment variables for those without Aztec C.  It
  10. woule be fairly easy to add a new command line option to specify the
  11. environment variable SIMPATH there, but I have not done that since I am
  12. pressed for time.
  13.  
  14. To run the system, you need to do the following:
  15.  
  16. 1) set up the three directories modlib, cmplib and lib.  Extract the
  17.     contents of the ZOO file using the full pathnames option
  18. 2) set up the environment variable SIMPATH so that it points to these
  19.     three directories
  20. 3) run sbprolog
  21.     - usually, when you run sbprolog, you specify the initial bytecode
  22.     file.  This is usally $readloop in the modlib directory.  This is the
  23.     usual PROLOG reader.
  24.     - also, there are several command line options.  SPB2.5 has a memory
  25.     shortage, at least on the 1 meg amiga 2000 I was using.  It is easy to
  26.     overflow existing memory.  On this 1 meg machine, the default memory
  27.     requirements are too high.  So I always specified the program memory
  28.     as 60000 (-p 60000) and the stack as 40000 (-m 40000). This seemed to
  29.     be the most that my 1-meg machine could handle.  
  30.  
  31.  
  32.  
  33. The sources for this version of SBprolog will work on either Unix or an Amiga.
  34. If on an Amiga, specify at compile time the flag -dAMIGA=1.  This will
  35. compile for the Amiga.  There are two main sets of C files, the main set,
  36. and a subdirectory of that directory called builtin.  There are two make
  37. files also.  I compile this using Aztec C, version 3.6a, and the Amiga
  38. makefiles are configured for Aztec.  If using another compiler, make sure that
  39. you have 32 bit integers and use the large memory model.
  40.  
  41. There are two make files for the two machines: unixmake & amigamake, and for
  42. the builtin subdirectory, bunixmake & bamigamake.
  43.  
  44.  
  45. Finally, the $readloop that is included in this release is compiled for the
  46. Amiga.  On the Amiga, the path separator is '!', on Unix it is ':'.  This
  47. necessatated recompiling $readloop for the Amiga.  If you wish to use SBP on
  48. Unix, you must recompile $readloop.P (in cmplib srces), after you have the
  49. C sources compiled on Unix.
  50. -----------------------------
  51. My SIMPATH looked like 
  52.  
  53. FastHD:bin/set SIMPATH=FastHD:nick/sbp2_5/modlib!FastHD:nick/sbp2_5/lib!FastHD:nick/sbp2_5/cmplib!!
  54.  
  55. and I aliased sbrun to be:
  56. :nick/sbp2_5/newsim/sbprolog -p 60000 -m 40000 :nick/sbp2_5/modlib/$readloop
  57.  
  58. Any questions my be sent to debray@cs.arizona.edu or me, 
  59.  
  60. Nick Kline, kline@cs.arizona.edu
  61.  
  62. August 16, 1989
  63.